﻿<%@ Page Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true" CodeFile="QuanLyToBoMon.aspx.cs" Inherits="QuanTri_QuanLyToBoMon" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head1" Runat="Server">
<link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
<div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
               <div class="personal_top_text">
                   Quản lý tổ bộ môn
                </div>
             </div>
             <asp:UpdatePanel ID="up" runat="server">
             <ContentTemplate>
        <div style="float:left;width:100%">
        <div style="border:solid 1px #686; float:left; width:400px;height:auto; margin-top:5px;">
          <div style="text-align:center;font-size:14px;color:blue ;padding:5px">Danh sách giáo viên</div>
            <table style="width:100%;border:0px none none">
            <tr>
            <td colspan="2">&nbsp;</td>
            </tr> 
                 <tr>
                    <td style="margin-left:5px;padding-right:15px;">
                        <asp:RadioButton runat="server" ID="rdoDSTCGV"
                            GroupName="rdo" AutoPostBack="True" oncheckedchanged="rdoDSTCGV_CheckedChanged"
                             />DS tất cả giáo viên </td>
                      <td style="margin-left:10px;padding-right:15px;float:right">
                          <asp:RadioButton runat="server" ID="rdoDSCPC"
                              GroupName="rdo" AutoPostBack="True" oncheckedchanged="rdoDSCPC_CheckedChanged" 
                           />DSGV chưa phân công</td>
                </tr>
                <tr>
                 <td style="padding-top:10px; margin-left:15px;padding-left:22px;font-size:13px;width:140px;height:25px"colspan="2">
                  <asp:TextBox runat="server" Text="Tên giáo viên" ID="txtTenGV" Width="174px" 
                         Height="27px"></asp:TextBox>
                  <asp:Button ID="btnTim" Text="Tìm" runat="server" CssClass="btn" 
                         onclick="btnTim_Click" />
                 </td>
                </tr>
                  <tr>
                   <td colspan="2" style="border:0px none none"><asp:CheckBox ID="ckChonTatCa" runat="server" 
                           AutoPostBack="True" oncheckedchanged="ckChonTatCa_CheckedChanged" />Chọn hết
                   </td>
                  </tr>
                <tr>
                    <td colspan="2" style="border-top:none 0px none;">
                     <asp:GridView ID="grvGV" runat="server"  AutoGenerateColumns="False" 
                      Width="100%" PageSize="10" AllowPaging="true"
                     ForeColor="#333333">
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                         <asp:TemplateField>
                           <ItemTemplate>
                           <center>
                             <asp:CheckBox ID="ckChonGV" runat="server" /></center>
                           </ItemTemplate>
                         </asp:TemplateField>
                         <asp:TemplateField HeaderText="STT">
                         <ItemTemplate><center><%# Container.DataItemIndex + 1 %></center> </ItemTemplate>
                         </asp:TemplateField>
                         <asp:TemplateField HeaderText="Tên giáo viên">
                         <ItemTemplate><asp:Label runat="server" ID="lblMaGV" Visible="false" Text='<%#Bind("MaCanBoGV")%>'>
                         </asp:Label>
                         <%#Eval("TenCanBo") %>
                         </ItemTemplate>
                         </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                    </td>
                    </tr> 
            </table>
        </div>
        <div  style=" float:left; width:105px;height:auto; margin:100px auto auto">
            
            <table style="margin-top:70px;margin-left:20px">
                <tr>
                    <td><asp:Button runat="server" CssClass="button" ID="btnPhanCong" Text="Phân TBM" 
                            Width="100px" onclick="btnPhanCong_Click"  /></td>
                </tr>
                <tr>
                    <td><asp:Button runat="server" ID="btnHuy" CssClass="button" Text="Hủy" 
                            Width="100px" onclick="btnHuy_Click" /></td>
                </tr>
            </table> 
        </div>
        <div style="border:solid 1px #333333;float:left;margin-left:50px; width:400px;height:auto; margin-top:5px;">
            <div style="text-align:center;font-size:14px;color:Blue; padding:5px">Danh sách theo tổ bộ môn</div>
            <table style="width:100%">
                <tr>
                   <td colspan="2">&nbsp;</td>
                </tr>
                <tr>
                    <td style="margin-left:10px;padding-right:15px;float:right;padding-top:20px">Tên tổ bộ môn</td>
                    <td>
                        <asp:DropDownList ID="cboToBoMon" Width="150px" runat="server" AutoPostBack="true"
                            onselectedindexchanged="cboToBoMon_SelectedIndexChanged">
                            <asp:ListItem Value="0" Selected="True">--Chọn tổ bộ môn--</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                  <tr>
                   <td colspan="2"><asp:CheckBox ID="Xoa" runat="server" AutoPostBack="True" 
                           oncheckedchanged="Xoa_CheckedChanged" />Chọn hết
                   </td>
                  </tr>
                <tr>
                    <td colspan="2" style="border-top:none 0px none">
                        <asp:GridView ID="GrvChuyen" runat="server" AutoGenerateColumns="False" 
                      Width="100%" PageSize="10" AllowPaging="true"
                     ForeColor="#333333" onselectedindexchanged="GrvChuyen_SelectedIndexChanged">
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:TemplateField>
                        <ItemTemplate>
                        <center>
                            <asp:CheckBox ID="ChonGV" runat="server" />
                            </center>
                        </ItemTemplate>
                        </asp:TemplateField>
                     <asp:TemplateField HeaderText="STT">
                         <ItemTemplate><center><%# Container.DataItemIndex + 1 %></center></ItemTemplate>
                         </asp:TemplateField>
                         <asp:TemplateField HeaderText="Tên giáo viên">
                         <ItemTemplate><asp:Label runat="server" ID="lblMaCanBo" Visible="false" Text='<%#Bind("MaCanBoGV")%>'></asp:Label>
                         <%#Eval("TenCanBo") %>
                         </ItemTemplate>
                         </asp:TemplateField>
                          <asp:TemplateField HeaderText="Tên bộ môn">
                         <ItemTemplate>
                         <asp:Label runat="server" ID="lblMaMon" Visible="false" Text='<%#Bind("MaMon") %>'></asp:Label>
                         <%#Eval("TenMon") %>
                         </ItemTemplate>
                         </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                    </td>
                </tr>        
            </table>
        </div>
      </div>
       </ContentTemplate>
     </asp:UpdatePanel>
    </div>
   </div>             
</asp:Content>